package com.gillion.grape.fros.ui.commands;

import org.eclipse.ui.IFileEditorInput;

import com.gillion.grape.technology.ui.commands.Model2Code;

/**
 * PSM模型转换为代码
 * 
 * @author meichenhui
 * @since 2011-8-30
 * 
 */
public abstract class PSM2Code implements IModelTransform {
	
	private String moduleName;

	public String getModuleName() {
		return moduleName;
	}

	public void setModuleName(String moduleName) {
		this.moduleName = moduleName;
	}

	/**
	 * 工程路径
	 */
	private String projectPath;

	protected String getProjectPath() {
		return projectPath;
	}

	@Override
	public void setTransformedArguments(Object args) {
		projectPath = (String) args;
	}

	/**
	 * PSM模型文件
	 */
	private IFileEditorInput psmModelFileInput;

	protected IFileEditorInput getPSMModelFileInput() {
		return psmModelFileInput;
	}

	@Override
	public void setUnTransformModel(Object unTransformModel) {
		this.psmModelFileInput = (IFileEditorInput) unTransformModel;
	}
}
